﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TGBTech.Core.Models.DanhMuc;

namespace TGBTech.Core.Models.ChungTu
{
    [Table("Data")]
    public class Data
    {
        public int Id { get; set; }
        [Required]
        public String SoCT { get; set; }
        [Required]
        public String NgayCT { get; set; }
        [Required]
        public String TaiKhoanNoId { get; set; }
        public virtual TaiKhoan TaiKhoanNo { get; set; }
        [Required]
        public String TaiKhoanCoId { get; set; }
        public virtual TaiKhoan TaiKhoanCo { get; set; }
        public String DienGiaiNo { get; set; }
        public String DienGiaiCo { get; set; }
        
        [Required]
        public String KhachHangId { get; set; }
        public virtual KhachHang KhachHang { get; set; }
        public bool LoaiKH { get; set; }    // No Co
        public Decimal SoTien { get; set; }

        [Required]
        public String SoHieu { get; set; }
        [Required]
        public String SoHoaDon { get; set; }
        [Required]
        public DateTime NgayHoaDon { get; set; }
        
        [Required]
        public int DanhMucId { get; set; }
        public virtual DanhMuc.DanhMuc DanhMuc { get; set; }

        public float VAT { get; set; }

    }
}
